﻿<?PHP

class DataBaseLink{

	private $server = 'localhost';
	private $user = 'root';
	private $password = '';
	private $database = 'turmadorango';

	// retorna objeto de conexao com o banco
	public function getMysqli(){
		$mysqli = new mysqli($this->server, $this->user,$this->password, $this->database);
		if (mysqli_connect_errno()) trigger_error(mysqli_connect_error());
		return $mysqli;
	}
}

?>